package cn.edu.suda.catalina.swipeback;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import cn.edu.suda.catalina.util.SwipeBackLayout;

public class Demo2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo2);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        SwipeBackLayout swipeBackLayout = (SwipeBackLayout) findViewById(R.id.activity_demo2);
        swipeBackLayout.setDragEdge(SwipeBackLayout.DragEdge.LEFT);
    }
}
